import {Component, enableProdMode, OnInit} from '@angular/core';
import {ActivatedRoute, Router} from '@angular/router';
import {ProgressBarService} from '../shared/progress-bar.service';

@Component({
  selector: 'app-header',
  templateUrl: './header.component.html',
  styleUrls: ['./header.component.css']
})
export class HeaderComponent implements OnInit {

  progressBarMode: string;

  constructor(private progressBarService: ProgressBarService) {
  }

  ngOnInit() {
    // enableProdMode();
    console.log('header init...');
    this.progressBarService.updateProgressBar$.subscribe((mode: string) => {
      this.progressBarMode = mode;
    });
  }
}
